package jus.aor.talk.v4;

import java.awt.Dimension;
import java.awt.Toolkit;

import jus.aor.talk.ui.client.TalkEventIntervenantAdaptator;
import jus.aor.talk.ui.client._IntervenantComposant;
import jus.aor.talk.ui.client._TalkEventIntervenantAdaptator;
import jus.aor.talk.ui.server.TalkUi;

public class Server {
	protected static Forum forum;
	protected static jus.aor.talk.ui.client.TalkUi beanTalk1, beanTalk2;
	protected static _IntervenantComposant intervenant1, intervenant2;
	protected static _TalkEventIntervenantAdaptator adaptator1, adaptator2;
	
	public static Forum searchForum(String forum) {return Server.forum;}
	
	public static void main( String[] args) throws Exception{
		Dimension dim = Toolkit.getDefaultToolkit().getScreenSize();

		forum = new Forum();
		TalkUi talkUi = new TalkUi(forum);
		forum .addServerEventListener(talkUi);
		
		talkUi.setSize(400,400);
		talkUi.setLocation((dim.width-talkUi.getWidth())/2,(dim.height-talkUi.getHeight())/2);
	}
}